package com.zjy.service.user;

import com.zjy.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserService {
    //用户登录
    public User login(String userCode, String password);
    //根据用户ID修改当前用户密码
    public boolean updatePwd(int id, String password);
    //查询记录数
    public int getUserCount(String username,int userRole);
    //获取用户列表分页显示
    public List<User> getUserList(String queryUserName,int queryUserRole,int currentPageNo, int pageSize);
    //添加用户
    public boolean add(User user);
    //删除用户
    public boolean delUser(Integer delId);
}
